package com.ruoyi.common.wecom.constants;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @description 企业微信的 corpId corp secret
 */
@Component
public class WeComPropConstants {
    // 企业Id
    public static String APP_ID;
    // secret
    public static String CORP_SECRET;
    // agentID
    @Value("${wecom.agentId}")
    public static Integer AGENT_ID;

    @Value("${wecom.appId}")
    public void setAppId(String appId) {
        WeComPropConstants.APP_ID = appId;
    }

    @Value("${wecom.corpSecret}")
    public void setCorpSecret(String corpSecret) {
        WeComPropConstants.CORP_SECRET = corpSecret;
    }

    @Value("${wecom.agentId}")
    public void setAgentId(Integer agentId) {
        WeComPropConstants.AGENT_ID = agentId;
    }
    //企业微信redis cacheKey
    public static final String REDIS_CACHE_KEY_WECOM_TOKEN = "wecomTokenCacheKey";



}
